Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@adobe/aio-lib-core-config
Advanced tools
This is a nodejs module to allow management of persistent and environment variable configuration.
The module can be added to your project with:
npm install @adobe/aio-lib-core-config --save
Here is a snippet:
const config = require('@adobe/aio-lib-core-config')
// set a key value
config.set('pgb.authtoken', 1234)
// reload data from files and environmental variables
config.reload()
// get all stored data
config.get()
// get data from a given key
config.get('pgb.authtoken')
// delete a key
config.delete('pgb.authtoken')
The user default location is:
depending on whether the specified environmental variables exist
Local configuration is loaded from $PWD/.aio
A local .env file is also loaded. This file can contain environmental variables
Resolving configuration is done in two steps:
Inheritance is similar to NPMRC and can be set using user file, project file and matching environment variables. Values are read and merged in the following order in increasing priority:
$ AIO_PGB_AUTHTOKEN=1234 node
> config.get('pgb.authtoken')
1234
$ AIO_PGB_AUTH__TOKEN=1234 node # use double underscores to specify an underscore
> config.get('pgb.auth_token')
1234
goto
API
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.
FAQs
Adobe I/O Configuration Module
The npm package @adobe/aio-lib-core-config receives a total of 7,469 weekly downloads. As such, @adobe/aio-lib-core-config popularity was classified as popular.
We found that @adobe/aio-lib-core-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 22 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.